Send File To Opened Session
AutomatR.WhatsApp.Activities.SendFileToOpenedSession
The "Send File To Opened Session" activity in AutomatR is part of the WhatsApp activities package, facilitating the sending of files in an ongoing conversation to a specific WhatsApp number. This activity streamlines the process of sharing files in WhatsApp sessions, enhancing the automation capabilities for WhatsApp-related workflows.
Properties
Name | Description |
---|---|
Input | |
To WhatsApp Number | Specifies the WhatsApp number to which the file will be sent. WhatsApp Number with country code, Example: 85264318721. Required argument. |
File | Selects the file to be sent. This can be a full local path or a browse button to upload the file. All acceptable formats should be selected. Required argument. |
Caption | Enter a caption to identify the file to be uploaded. Optional argument. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Send File To Opened Session" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Result | Returns the response as Form Details. Variables of type SendFileSession to store the operation result. |
How to use:
- Drag and drop the "Send File To Opened Session" activity onto the workflow.
- Configure the properties by specifying the WhatsApp number, file to be sent, and optionally, provide a caption for the file.
- Optionally, configure the delay and customize the display name.
- Execute the workflow to send the specified file to the ongoing conversation in the WhatsApp session.
Example: Consider an example where the "Send File To Opened Session" activity is used to send an image file named "sample.jpg" to a WhatsApp number:
Send File To Opened Session:
Display Name: "Send Sample File"
To WhatsApp Number: "85264318721"
File: "D:/sample.jpg"
Caption: "Sample Image"
Result: sendFileResult
In this example, the activity sends the "sample.jpg" file to the WhatsApp number "85264318721" with the caption "Sample Image." The result of the operation is stored in the sendFileResult
variable for further handling in the workflow.